<template>
<div>
   <div>
    标题：<input type="text" v-model.trim="biaoti">
    内容：<input type="text" v-model.trim="neirong">
    姓名：<input type="text" v-model.trim="xingming">
    <button @click="add()">添加</button>
   </div> 
</div>
</template>
<script>
export default{
    data(){
        return{
         biaoti:"",
         neirong:"",
         xingming:""
        }
    },
    methods:{
        add(){
             this.$emit("c",this.biaoti,this.neirong,this.xingming)
              this.biaoti = ""
              this.neirong = ""
              this.xingming = ""
        }
    }
}
</script>